<{include file="chosen.html"}>

<{include file="fullcalendar.html"}>

<script>
	var fc_day_createplan = 1;
	//添加某日的日程，用于后台关闭
	function zxcreateplan(data_date, status){
		$.get('<{spUrl c=orderrecord a=create}>&data_date='+data_date, {}, function(str){
			layer.open({
				type: 1,
				moveType: 1,
				maxmin: true,
				tipsMore: true,
				title: "添加 " + data_date +" 的日程",
				area: ['800px', '560px'],
				fixed:false,
				top:100,
				shadeClose: true, //点击遮罩关闭
				content: str
			});
			chosen_init();
		});
	}
</script>
<script src="js/layer/layer.js"></script>
<script>
	//查看某日的日程
function zxshow(id, layertitle,date){
	console.log(layertitle)
	console.log(id)
	console.log(date)
	//window.open("<{spUrl c=schedule a=viewplan}>&id=" + id, "windowname", "width=500,height=400,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
	$.get('<{spUrl c=orderrecord a=edit}>' + "&id="+id+"&data_date="+date, {}, function(str){
		layer.open({
			type: 1,
			moveType: 1,
			maxmin: true,
			tipsMore: true,
			title: layertitle,
			area: ['800px', '500px'],
			shadeClose: true, //点击遮罩关闭
			content: str
		});
	});
}
</script>
<div class="zxright">
	<a href="javascript:" id="refresh" class="zxhide">刷新</a>
	颜色说明：（
	<!--
	<i class="zxsquare calendar_end">&nbsp;</i>空闲
	-->
	<i class="zxsquare calendar_doing">&nbsp;</i>已预约
	<i class="zxsquare calendar_overdate">&nbsp;</i>已关闭
	）
</div>
<div class="zx_margin_top_small">
	<div class="row-fluid calendar_contains">
		<div class="calendar_left" id="calendar_left">
			<div id='calendar'></div>
		</div>
	</div>
	<script type="text/javascript">
	    $(function() {
	        window.ATUserCalendar.init();
	        /*
	        window.ATGO.parameters({
	            pageID: 0
	        });
	        */
	    });
	</script>
</div>
